"""OA_django URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from .views import *

urlpatterns = [
    path('admin/', admin.site.urls),
    # 流程创建，查看
    path('process/',CreateProcessAPIView.as_view()),
    # 节点创建，查看
    path('point/',CreatePointAPIView.as_view()),
    # 节点查看单个
    path('point/<int:id>/',CreatePointView.as_view()),
    # 节点属性查看
    path('attr/',AttrAPIView.as_view()),
    # 节点样式创建
    path('style/',PointStyleAPIView.as_view()),
    # 节点样式查看单个
    path('style/<int:id>/',PointStyleView.as_view()),
    # 员工申请流程创建，查看
    path('apply/',ApplyProcessAPIView.as_view()),
    #  审批查看样式
    path('check/<int:id>/',StyleOneAPIView.as_view()),
    # 审批添加
    path('check/',StyleAPIView.as_view())

]
